package cn.stylefeng.guns.modular.examination.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.examination.entity.Examination;
import cn.stylefeng.guns.modular.examination.model.params.ExaminationParam;
import cn.stylefeng.guns.modular.examination.model.result.ExaminationResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 创建考试 服务类
 * </p>
 *
 * @author CHENCHEN
 * @since 2022-07-19
 */
public interface ExaminationService extends IService<Examination> {

    /**
     * 新增
     *
     * @author CHENCHEN
     * @Date 2022-07-19
     */
    void add(ExaminationParam param);

    /**
     * 删除
     *
     * @author CHENCHEN
     * @Date 2022-07-19
     */
    void delete(ExaminationParam param);

    /**
     * 更新
     *
     * @author CHENCHEN
     * @Date 2022-07-19
     */
    void update(ExaminationParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author CHENCHEN
     * @Date 2022-07-19
     */
    ExaminationResult findBySpec(ExaminationParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author CHENCHEN
     * @Date 2022-07-19
     */
    List<ExaminationResult> findListBySpec(ExaminationParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author CHENCHEN
     * @Date 2022-07-19
     */
     LayuiPageInfo findPageBySpec(ExaminationParam param);

}
